package com.beself.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * author:徐明
 * date：2019/10/13 22:00
 * description:
 */
public class Tasks {

//    任务id
    private Integer tId;
//    任务名称
    private String tName;
//    任务状态（完成，未完成）
    private Integer tStatus;
//    任务创建日期
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date tDate;
//    任务状态码，默认0，从1到3,3时该任务完成
    private Integer tStatuscode;
//    任务持续时间，
    private Integer tTimespan;
//    更新时间，完成一次，修改一次
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date tUptime;
    //    空余数据
    private String data2;
//  用户id
    private Integer uId;
//习惯id
    private Integer hId;
//    图片
    private String icon;
//    任务描述
    private String detail;

    private Habits habits;

    private TUser tUser;


    public Tasks() {
    }

    public Tasks(Integer tId, String tName, Integer tStatus, Date tDate, Integer tStatuscode, Integer tTimespan, Date tUptime, String data2, Integer uId, Integer hId, String icon, String detail, Habits habits, TUser tUser) {
        this.tId = tId;
        this.tName = tName;
        this.tStatus = tStatus;
        this.tDate = tDate;
        this.tStatuscode = tStatuscode;
        this.tTimespan = tTimespan;
        this.tUptime = tUptime;
        this.data2 = data2;
        this.uId = uId;
        this.hId = hId;
        this.icon = icon;
        this.detail = detail;
        this.habits = habits;
        this.tUser = tUser;
    }

    public Date gettUptime() {
        return tUptime;
    }

    public void settUptime(Date tUptime) {
        this.tUptime = tUptime;
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public Integer gettStatus() {
        return tStatus;
    }

    public void settStatus(Integer tStatus) {
        this.tStatus = tStatus;
    }

    public Date gettDate() {
        return tDate;
    }

    public void settDate(Date tDate) {
        this.tDate = tDate;
    }

    public Integer gettStatuscode() {
        return tStatuscode;
    }

    public void settStatuscode(Integer tStatuscode) {
        this.tStatuscode = tStatuscode;
    }

    public Integer gettTimespan() {
        return tTimespan;
    }

    public void settTimespan(Integer tTimespan) {
        this.tTimespan = tTimespan;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getData2() {
        return data2;
    }

    public void setData2(String data2) {
        this.data2 = data2;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public Habits getHabits() {
        return habits;
    }

    public void setHabits(Habits habits) {
        this.habits = habits;
    }

    public TUser gettUser() {
        return tUser;
    }

    public void settUser(TUser tUser) {
        this.tUser = tUser;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    public String toString() {
        return "Tasks{" +
                "tId=" + tId +
                ", tName='" + tName + '\'' +
                ", tStatus=" + tStatus +
                ", tDate=" + tDate +
                ", tStatuscode=" + tStatuscode +
                ", tTimespan=" + tTimespan +
                ", tUptime=" + tUptime +
                ", data2='" + data2 + '\'' +
                ", uId=" + uId +
                ", hId=" + hId +
                ", icon='" + icon + '\'' +
                ", detail='" + detail + '\'' +
                ", habits=" + habits +
                ", tUser=" + tUser +
                '}';
    }
}
